import { BaseWindow } from "../../../component/window/BaseWindow";
import { ILayer } from "../../../mvc/interfaces/ILayer";
import { Language } from "../../../../extend/language/Language";
import { ObjCreate } from "../common/ObjCreate";
import { GTextFormat } from "../../../common/GTextFormat";
import { GTextFiled } from "../../../../com/mui/controls/GTextFiled";
import { GButton } from "../../../../com/mui/controls/GButton";
type int = number;
//class AvatarUploadWindow
    
    export  class AvatarUploadWindow extends BaseWindow
    {
        constructor(arg1: ILayer=null)
        {
            super(arg1);
            setSize(305, 175);
            title = Language.getString(30149);
            titleHeight = 30;
            return;
        }

        protected /* override */ createChildren(): void
        {
            super.createChildren();
            ObjCreate.createBg(17, 43, 270, 90, this);
            var loc1=new GTextFormat("", 12, 11661311, null, null, null, null, null, flash.text.TextFormatAlign.CENTER, null, null, null, 3);
            this._txtdesc = ObjCreate.createGTextField("", 17, 48, 270, 80, this, loc1);
            this._txtdesc.wordWrap = true;
            this._txtdesc.multiline = true;
            this._btn = ObjCreate.createGButton(Language.getString(30151), 125, 138, 50, 25, this);
            this._btn.addEventListener(flash.events.MouseEvent.CLICK, this.onBtnClickHandler);
            return;
        }

        /* internal  */onBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            this.hide();
            return;
        }

        public /* override */ show(arg1: int=0, arg2: int=0): void
        {
            super.show();
            this._txtdesc.htmlText = Language.getString(30268);
            return;
        }

        /* internal */ /* var */_txtdesc: GTextFiled;

        /* internal */ /* var */_btn: GButton;
    }
